import https from "../https/Https.js";
import cmd from "../Cmd.js";
import config from "../conf/Config.js";
import localStore from "../LocalStore.js";
var vipCtrl = {};
vipCtrl.getSign = function()
{
	let that = this;
	let obj = {};
	https.loginVipGetSign(obj,back);
	async function back(data)
	{
		if(!data)return;
		if(!data.data)return;
		if(data.status == 1)
		{
			if(data.data.sign)
			{
				let cp = await localStore.getCpInfo();
				let d = {};
				d.url = config.host + config.LOGIN_PC + "?sign=" + data.data.sign + "&cpid=" + cp.id;
				// cmd.external(cmd.CMD_OPEN_VIP,d);
				window.open(d.url);
			}
		}
	}
}
export default vipCtrl;